#ifndef SPRITE_H
#define SPRITE_H

#pragma once
#include <d3d9.h>
#pragma comment(lib, "d3d9.lib")
#include <d3dx9.h>
#include <vector>
using namespace std;

const float PI = 3.141f;

class Sprite
{
public:
	D3DXVECTOR3	vPos;			// Position
	float		fScale;			// Scale
	float		fAngle;			// Rotation Angle
	D3DXMATRIX	mWorld;			// Final world transform
	D3DXVECTOR3	vSpriteCenter;	// center of sprite, based on image_info calculated in Renderer
	D3DCOLOR	color;			// probably has to do with color

	bool		isSpinning;		// flag for whether or not the sprite spins
	

	// used for bound checks
	float		fBoundLen;
	float		fBoundWid;

	Sprite();
	void Update();
};

typedef vector<Sprite*> SpriteList;

#endif